﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="BackgroundPage.ascx.cs" Inherits="QuanLyDeTaiKHCN.UserControls.BackgroundPage" %>
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="upd1" runat="server">
    <ContentTemplate>
        <asp:Panel ID="pnlist" runat="server">
            <div style="text-align: center">
                <asp:GridView ID="grid" runat="server" AutoGenerateColumns="False" DataKeyNames="MaDeTaiDuAn" ForeColor="#333333" OnRowCommand="grid_RowCommand">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:TemplateField HeaderText="Mã đề tài">
                            <ItemTemplate>
                                <asp:Label ID="lblMaDeTaiDuAn" runat="server" Text='<%# Bind("MaDeTaiDuAn") %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle CssClass="ItemGridCell" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Tên đề tài">
                            <ItemTemplate>
                                <asp:Label ID="lblTenDeTaiDuAn" runat="server" Text='<%# Bind("TenDeTaiDuAn") %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle CssClass="ItemGridCell" />
                        </asp:TemplateField>
                        <asp:TemplateField ShowHeader="true" HeaderText="Người thụ lý">
                            <ItemTemplate>
                                <%#Eval("NguoiThuLy") %>
                            </ItemTemplate>
                            <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
                        </asp:TemplateField>
                        <asp:TemplateField ShowHeader="true" HeaderText="Ngày Khởi Tạo">
                            <ItemTemplate>
                                <%#Eval("Ngay") %>
                            </ItemTemplate>
                            <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Chọn">
                            <ItemTemplate>
                                <a href='<%#"./?mod="+_ps.Encrypt("Manager","gold",128) +"&id="+_ps.Encrypt(Eval("MaDeTaiDuAn").ToString(),"gold",128)%>' title="Chọn để vào trang quản lý"><i class='icon-folder-open-alt'></i>&nbsp;Chọn</a>
                            </ItemTemplate>
                            <ItemStyle CssClass="ItemGridCell" Width="100px" HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:TemplateField>
                        <asp:TemplateField ShowHeader="true" HeaderText="Trễ hạn giai đoạn">
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" Visible='<%#Eval("Tre") %>' CommandName="DeleteCommand" CommandArgument='<%# ((GridViewRow) Container).RowIndex %>' Text="<i class='icon-file-text-alt red'></i> Xem" ForeColor="Red"></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:TemplateField>
                        <asp:TemplateField ShowHeader="true" HeaderText="Trễ hạn đề tài">
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButtonTreDeTai" runat="server" CausesValidation="False" Visible='<%#Eval("TreDeTai") %>' CommandName="DeleteCommandTreDeTai" CommandArgument='<%# ((GridViewRow) Container).RowIndex %>' Text="<i class='icon-file-text-alt red'></i> Xem" ForeColor="Red"></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EFF3FB" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
                </asp:GridView>
            </div>
        </asp:Panel>
        <asp:Panel ID="pndetail" runat="server">
            <div class="control-group info row-fluid">
                <asp:Label ID="lbltendetai" runat="server" Font-Bold="true" ForeColor="Red"></asp:Label>
                <br />
                <span style="color:red;font-weight:bold;"><u>Thông tin trễ hạn đề tài</u></span>
                <br />
               <%-- <table class="tableformat">
                    <tr style="text-align:center;font-weight:bold;">
                        <td>Giai đoạn</td>
                        <td>Thời gian thực hiện từ</td>
                        <td>Đến</td>
                        <td>Kinh phí</td>
                        <td>Thời gian trễ hạn</td>
                    </tr>
                    
                </table>--%>
                <asp:Label ID="lblDetail" runat="server"></asp:Label>
            </div>
            <asp:LinkButton ID="LinkButton2" OnClick="LinkButton2_Click" Width="100" class="btn btn btn-danger" runat="server"><i class="icon-signout"></i>&nbsp;&nbsp;Đóng</asp:LinkButton>
        </asp:Panel>
    </ContentTemplate>
</asp:UpdatePanel>
